package com.njupt.sellsec.util;

import org.springframework.util.StringUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 14:54 2018/7/28
 * @Modified By:
 **/
public class ValidatorUtil {

    private static final Pattern mobile_pattern = Pattern.compile("1\\d{10}");

    public static boolean isMobile(String sec) {
        if (StringUtils.isEmpty(sec)){
            return false;
        }
        Matcher m = mobile_pattern.matcher(sec);
        return m.matches();
    }


}
